Optimal. Leaf size=58 \[ \frac {B x \sqrt {a+b x^2}}{2 b}+\frac {(2 A b-a B) \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{2 b^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 58, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {396, 223, 212}
\begin {gather*} \frac {(2 A b-a B) \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{2 b^{3/2}}+\frac {B x \sqrt {a+b x^2}}{2 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 223
Rule 396
Rubi steps
\begin {align*} \int \frac {A+B x^2}{\sqrt {a+b x^2}} \, dx &=\frac {B x \sqrt {a+b x^2}}{2 b}-\frac {(-2 A b+a B) \int \frac {1}{\sqrt {a+b x^2}} \, dx}{2 b}\\ &=\frac {B x \sqrt {a+b x^2}}{2 b}-\frac {(-2 A b+a B) \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x}{\sqrt {a+b x^2}}\right )}{2 b}\\ &=\frac {B x \sqrt {a+b x^2}}{2 b}+\frac {(2 A b-a B) \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{2 b^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 59, normalized size = 1.02 \begin {gather*} \frac {B x \sqrt {a+b x^2}}{2 b}+\frac {(-2 A b+a B) \log \left (-\sqrt {b} x+\sqrt {a+b x^2}\right )}{2 b^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 63, normalized size = 1.09
method | result | size |
risch | \(\frac {B x \sqrt {b \,x^{2}+a}}{2 b}+\frac {A \ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right )}{\sqrt {b}}-\frac {\ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right ) B a}{2 b^{\frac {3}{2}}}\) | \(62\) |
default | \(B \left (\frac {x \sqrt {b \,x^{2}+a}}{2 b}-\frac {a \ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right )}{2 b^{\frac {3}{2}}}\right )+\frac {A \ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right )}{\sqrt {b}}\) | \(63\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.31, size = 47, normalized size = 0.81 \begin {gather*} \frac {\sqrt {b x^{2} + a} B x}{2 \, b} - \frac {B a \operatorname {arsinh}\left (\frac {b x}{\sqrt {a b}}\right )}{2 \, b^{\frac {3}{2}}} + \frac {A \operatorname {arsinh}\left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {b}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.27, size = 110, normalized size = 1.90 \begin {gather*} \left [\frac {2 \, \sqrt {b x^{2} + a} B b x - {\left (B a - 2 \, A b\right )} \sqrt {b} \log \left (-2 \, b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {b} x - a\right )}{4 \, b^{2}}, \frac {\sqrt {b x^{2} + a} B b x + {\left (B a - 2 \, A b\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {-b} x}{\sqrt {b x^{2} + a}}\right )}{2 \, b^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.52, size = 126, normalized size = 2.17 \begin {gather*} A \left (\begin {cases} \frac {\sqrt {- \frac {a}{b}} \operatorname {asin}{\left (x \sqrt {- \frac {b}{a}} \right )}}{\sqrt {a}} & \text {for}\: a > 0 \wedge b < 0 \\\frac {\sqrt {\frac {a}{b}} \operatorname {asinh}{\left (x \sqrt {\frac {b}{a}} \right )}}{\sqrt {a}} & \text {for}\: a > 0 \wedge b > 0 \\\frac {\sqrt {- \frac {a}{b}} \operatorname {acosh}{\left (x \sqrt {- \frac {b}{a}} \right )}}{\sqrt {- a}} & \text {for}\: b > 0 \wedge a < 0 \end {cases}\right ) + \frac {B \sqrt {a} x \sqrt {1 + \frac {b x^{2}}{a}}}{2 b} - \frac {B a \operatorname {asinh}{\left (\frac {\sqrt {b} x}{\sqrt {a}} \right )}}{2 b^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.73, size = 48, normalized size = 0.83 \begin {gather*} \frac {\sqrt {b x^{2} + a} B x}{2 \, b} + \frac {{\left (B a - 2 \, A b\right )} \log \left ({\left | -\sqrt {b} x + \sqrt {b x^{2} + a} \right |}\right )}{2 \, b^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.50, size = 86, normalized size = 1.48 \begin {gather*} \left \{\begin {array}{cl} \frac {B\,x^3+3\,A\,x}{3\,\sqrt {a}} & \text {\ if\ \ }b=0\\ \frac {A\,\ln \left (\sqrt {b}\,x+\sqrt {b\,x^2+a}\right )}{\sqrt {b}}-\frac {B\,a\,\ln \left (2\,\sqrt {b}\,x+2\,\sqrt {b\,x^2+a}\right )}{2\,b^{3/2}}+\frac {B\,x\,\sqrt {b\,x^2+a}}{2\,b} & \text {\ if\ \ }b\neq 0 \end {array}\right . \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________